home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / conversion / pbmplus / doc / libpnm.doc < prev    next >
Text File  |  1995-02-13  |  2KB  |  133 lines

  1.  
  2.  
  3.  
  4. pnm(3)                      PBM Plus                       pnm(3)
  5.  
  6.  
  7.  
  8. NAME
  9.      pnm - functions to support portable anymap programs
  10.  
  11. SYNOPSIS
  12.      #include <pbm.h>
  13.      cc ... libpbm.a
  14.  
  15.  
  16. DESCRIPTION
  17.      MESSAGE MANAGEMENT
  18.  
  19.      char *pm_progname;
  20.  
  21.      This variable should be set at the beginning of all programs
  22.      to point to argv[0].
  23.  
  24.      void
  25.      pm_message( fmt, ... )
  26.      char *fmt;
  27.  
  28.      Use this function to write an informational message.
  29.  
  30.      void
  31.      pm_error( fmt, ... )
  32.      char *fmt;
  33.  
  34.      Use this function to write an error message (and exit).
  35.  
  36.      void
  37.      pm_usage( usage )
  38.      char *usage;
  39.  
  40.      Use this function to write a usage message.  The string
  41.      should indicate what arguments are to be provided to the
  42.      program.
  43.  
  44.      GENERIC FILE MANAGEMENT
  45.  
  46.      FILE *
  47.      pm_openr( name )
  48.      char *name;
  49.  
  50.      Open the given file for reading, with appropriate error
  51.      checking.  A filename of ``-'' is taken as equivalent to
  52.      stdin.
  53.  
  54.      void
  55.      pm_close( f )
  56.      FILE *f;
  57.  
  58.      Close the file descriptor, with appropriate error checking.
  59.  
  60.  
  61.  
  62.  
  63. Printed 5/25/90                                                 1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. pnm(3)                      PBM Plus                       pnm(3)
  71.  
  72.  
  73.  
  74. SEE ALSO
  75.      pgm(3), ppm(3)
  76.  
  77. AUTHOR
  78.      Manual by Tony Hansen.
  79.  
  80.      Copyright (C) 1989 by Jef Poskanzer.
  81.  
  82.      Permission to use, copy, modify, and distribute this
  83.      software and its documentation for any purpose and without
  84.      fee is hereby granted, provided that the above copyright
  85.      notice appear in all copies and that both that copyright
  86.      notice and this permission notice appear in supporting docu-
  87.      mentation.  This software is provided "as is" without
  88.      express or implied warranty.
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Printed 5/25/90                                                 2
  130.  
  131.  
  132.  
  133.